package cn.flying.base.process.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 异常信息表
 *
 * @author
 * @TableName cf_proc_exception
 */
public class CfProcException implements Serializable {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 流程实例ID
     */
    private String procInstId;

    /**
     * 流程执行ID
     */
    private String executionId;

    /**
     * 流程定义ID
     */
    private String procDefId;

    /**
     * 流程定义Key
     */
    private String procDefKey;

    /**
     * 流程定义name
     */
    private String procDefName;

    /**
     * 任务ID
     */
    private String activitiId;

    /**
     * 任务名称
     */
    private String activitiName;

    /**
     * 业务流水号
     */
    private String bizKey;

    /**
     * 异常信息
     */
    private String exceptionMsg;

    /**
     * 异常栈信息
     */
    private String exceptionTrace;

    /**
     * 处理状态
     */
    private String dealState;

    /**
     * 租户号
     */
    private String tenantId;

    /**
     * 乐观锁
     */
    private Long revision;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    private Date updatedTime;

    /**
     * 删除标识
     */
    private String delFlag;

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 流程实例ID
     */
    public String getProcInstId() {
        return procInstId;
    }

    /**
     * 流程实例ID
     */
    public void setProcInstId(String procInstId) {
        this.procInstId = procInstId;
    }

    /**
     * 流程执行ID
     */
    public String getExecutionId() {
        return executionId;
    }

    /**
     * 流程执行ID
     */
    public void setExecutionId(String executionId) {
        this.executionId = executionId;
    }

    /**
     * 流程定义ID
     */
    public String getProcDefId() {
        return procDefId;
    }

    /**
     * 流程定义ID
     */
    public void setProcDefId(String procDefId) {
        this.procDefId = procDefId;
    }

    /**
     * 流程定义Key
     */
    public String getProcDefKey() {
        return procDefKey;
    }

    /**
     * 流程定义Key
     */
    public void setProcDefKey(String procDefKey) {
        this.procDefKey = procDefKey;
    }

    /**
     * 流程定义name
     */
    public String getProcDefName() {
        return procDefName;
    }

    /**
     * 流程定义name
     */
    public void setProcDefName(String procDefName) {
        this.procDefName = procDefName;
    }

    /**
     * 任务ID
     */
    public String getActivitiId() {
        return activitiId;
    }

    /**
     * 任务ID
     */
    public void setActivitiId(String activitiId) {
        this.activitiId = activitiId;
    }

    /**
     * 任务名称
     */
    public String getActivitiName() {
        return activitiName;
    }

    /**
     * 任务名称
     */
    public void setActivitiName(String activitiName) {
        this.activitiName = activitiName;
    }

    /**
     * 业务流水号
     */
    public String getBizKey() {
        return bizKey;
    }

    /**
     * 业务流水号
     */
    public void setBizKey(String bizKey) {
        this.bizKey = bizKey;
    }

    /**
     * 异常信息
     */
    public String getExceptionMsg() {
        return exceptionMsg;
    }

    /**
     * 异常信息
     */
    public void setExceptionMsg(String exceptionMsg) {
        this.exceptionMsg = exceptionMsg;
    }

    /**
     * 异常栈信息
     */
    public String getExceptionTrace() {
        return exceptionTrace;
    }

    /**
     * 异常栈信息
     */
    public void setExceptionTrace(String exceptionTrace) {
        this.exceptionTrace = exceptionTrace;
    }

    /**
     * 处理状态
     */
    public String getDealState() {
        return dealState;
    }

    /**
     * 处理状态
     */
    public void setDealState(String dealState) {
        this.dealState = dealState;
    }

    /**
     * 租户号
     */
    public String getTenantId() {
        return tenantId;
    }

    /**
     * 租户号
     */
    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    /**
     * 乐观锁
     */
    public Long getRevision() {
        return revision;
    }

    /**
     * 乐观锁
     */
    public void setRevision(Long revision) {
        this.revision = revision;
    }

    /**
     * 创建人
     */
    public String getCreatedBy() {
        return createdBy;
    }

    /**
     * 创建人
     */
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    /**
     * 创建时间
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * 创建时间
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 更新人
     */
    public String getUpdatedBy() {
        return updatedBy;
    }

    /**
     * 更新人
     */
    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    /**
     * 更新时间
     */
    public Date getUpdatedTime() {
        return updatedTime;
    }

    /**
     * 更新时间
     */
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    /**
     * 删除标识
     */
    public String getDelFlag() {
        return delFlag;
    }

    /**
     * 删除标识
     */
    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CfProcException other = (CfProcException) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getProcInstId() == null ? other.getProcInstId() == null : this.getProcInstId().equals(other.getProcInstId()))
                && (this.getExecutionId() == null ? other.getExecutionId() == null : this.getExecutionId().equals(other.getExecutionId()))
                && (this.getProcDefId() == null ? other.getProcDefId() == null : this.getProcDefId().equals(other.getProcDefId()))
                && (this.getProcDefKey() == null ? other.getProcDefKey() == null : this.getProcDefKey().equals(other.getProcDefKey()))
                && (this.getProcDefName() == null ? other.getProcDefName() == null : this.getProcDefName().equals(other.getProcDefName()))
                && (this.getActivitiId() == null ? other.getActivitiId() == null : this.getActivitiId().equals(other.getActivitiId()))
                && (this.getActivitiName() == null ? other.getActivitiName() == null : this.getActivitiName().equals(other.getActivitiName()))
                && (this.getBizKey() == null ? other.getBizKey() == null : this.getBizKey().equals(other.getBizKey()))
                && (this.getExceptionMsg() == null ? other.getExceptionMsg() == null : this.getExceptionMsg().equals(other.getExceptionMsg()))
                && (this.getExceptionTrace() == null ? other.getExceptionTrace() == null : this.getExceptionTrace().equals(other.getExceptionTrace()))
                && (this.getDealState() == null ? other.getDealState() == null : this.getDealState().equals(other.getDealState()))
                && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
                && (this.getRevision() == null ? other.getRevision() == null : this.getRevision().equals(other.getRevision()))
                && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
                && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
                && (this.getUpdatedBy() == null ? other.getUpdatedBy() == null : this.getUpdatedBy().equals(other.getUpdatedBy()))
                && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()))
                && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProcInstId() == null) ? 0 : getProcInstId().hashCode());
        result = prime * result + ((getExecutionId() == null) ? 0 : getExecutionId().hashCode());
        result = prime * result + ((getProcDefId() == null) ? 0 : getProcDefId().hashCode());
        result = prime * result + ((getProcDefKey() == null) ? 0 : getProcDefKey().hashCode());
        result = prime * result + ((getProcDefName() == null) ? 0 : getProcDefName().hashCode());
        result = prime * result + ((getActivitiId() == null) ? 0 : getActivitiId().hashCode());
        result = prime * result + ((getActivitiName() == null) ? 0 : getActivitiName().hashCode());
        result = prime * result + ((getBizKey() == null) ? 0 : getBizKey().hashCode());
        result = prime * result + ((getExceptionMsg() == null) ? 0 : getExceptionMsg().hashCode());
        result = prime * result + ((getExceptionTrace() == null) ? 0 : getExceptionTrace().hashCode());
        result = prime * result + ((getDealState() == null) ? 0 : getDealState().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getRevision() == null) ? 0 : getRevision().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        result = prime * result + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode());
        result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", procInstId=").append(procInstId);
        sb.append(", executionId=").append(executionId);
        sb.append(", procDefId=").append(procDefId);
        sb.append(", procDefKey=").append(procDefKey);
        sb.append(", procDefName=").append(procDefName);
        sb.append(", activitiId=").append(activitiId);
        sb.append(", activitiName=").append(activitiName);
        sb.append(", bizKey=").append(bizKey);
        sb.append(", exceptionMsg=").append(exceptionMsg);
        sb.append(", exceptionTrace=").append(exceptionTrace);
        sb.append(", dealState=").append(dealState);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", revision=").append(revision);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedBy=").append(updatedBy);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}